3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next
This section describes TQ3XRendererIsBoundingBoxVisibleMethod, a renderer support method used to cull group and geometric objects.
#define kQ3XMethodTypeRendererIsBoundingBoxVisible
Q3_METHOD_TYPE('r','d','b','x')
typedef TQ3Boolean (*TQ3XRendererIsBoundingBoxVisibleMethod)(
TQ3ViewObject view,
void *rendererPrivate,
const TQ3BoundingBox *bBox);
The kQ3XMethodTypeRendererIsBoundingBoxVisible method type returns a function pointer of type TQ3XRendererIsBoundingBoxVisibleMethod.
This renderer support method is called to cull complex groups and geometries by passing their bounding box in local space. It should transform the local-space bounding box coordinates to frustum space and return a value of type TQ3Boolean indicating whether or not the box appears within the viewing frustum. If no method is supplied, the default behavior is to return kQ3True .
Previous | QD3D Book | Overview | Chapter Contents | Next